package com.example.demo.controller;

import com.example.demo.service.DaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class DaoController {
    @Autowired
    private DaoService daoService;



    @RequestMapping("getUser")
    public List<Map<String, Object>> getAll(){
        return this.daoService.getAll();
    }
}